import eventBus from '@/global/event-bus'
export function useHeight() {
  const { colLayout, formItems, colHeight, isShowRowCount, isOverChange } = eventBus
  const oneHeight = eventBus.colHeight
  // 计算总高度
  const count = 24 / colLayout.span
  const height = Math.ceil(formItems.length / count) * oneHeight
  const overHeight = isShowRowCount * colHeight
  return isOverChange ? height : overHeight
}
